﻿// MIT License
//
// Copyright (c) 2021-present zuohuaijun, Daming Co.,Ltd and Contributors
//
// 电话/微信：18020030720 QQ群1：87333204 QQ群2：252381476

using Admin.NET.Core;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Admin.Net.InformationPlatform.Service.Equipment.Dto;

/// <summary>
/// 保养记录添加信息
/// </summary>
public class MaintenanceMessageInput
{

    /// <summary>
    /// 设备编号
    /// </summary>
    public string DEVICENUMBER { get; set; } = string.Empty;


    /// <summary>
    /// 保养费用
    /// </summary>
    public double MAINTENANCEEXPENSES { get; set; }

    /// <summary>
    /// 保养原因
    /// </summary>
    public string MAINTENANCECAUSE { get; set; } = string.Empty;

    /// <summary>
    /// 备注
    /// </summary>
    public string MAINTENANCEREMARK { get; set; } = string.Empty;

    /// <summary>
    /// 保养人
    /// </summary>
    public string MAINTENANCEPERSON { get; set; } = string.Empty;

    /// <summary>
    /// 保养时间
    /// </summary>
    public DateTime? MAINTENANCETIME { get; set; }

}

public class SeleteMaintenanceMessageInput : BasePageInput {


    /// <summary>
    /// 设备编号
    /// </summary>
    public string DEVICENUMBER { get; set; } = string.Empty;


    /// <summary>
    /// 保养人
    /// </summary>
    public string MAINTENANCEPERSON { get; set; } = string.Empty;


    /// <summary>
    /// 保养原因
    /// </summary>
    public string MAINTENANCECAUSE { get; set; } = string.Empty;

    /// <summary>
    /// 起始查询时间
    /// </summary>
    public DateTime? StateMaintenanceTime { get; set; }

    /// <summary>
    /// 结束查询时间
    /// </summary>
    public DateTime? EndMaintenanceTime { get; set; }
}

/// <summary>
/// 修改保养记录
/// </summary>

public class UpdateMaintenanceMessageInput { 

    /// <summary>
    /// 主键id
    /// </summary>
    public int MID { get; set; }


    /// <summary>
    /// 设备编号
    /// </summary>
    public string DEVICENUMBER { get; set; } = string.Empty;


    /// <summary>
    /// 保养时间
    /// </summary>
    public DateTime? MAINTENANCETIME { get; set; }


    /// <summary>
    /// 保养人
    /// </summary>
    public string MAINTENANCEPERSON { get; set; } = string.Empty;


    /// <summary>
    /// 保养费用
    /// </summary>
    public double MAINTENANCEEXPENSES { get; set; }


    /// <summary>
    /// 保养原因
    /// </summary>
    public string MAINTENANCECAUSE { get; set; } = string.Empty;


    /// <summary>
    /// 备注
    /// </summary>
    public string MAINTENANCEREMARK { get; set; } = string.Empty;

}